package com.opal.modules.costReportForm.entity.table;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CartonPriceDetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CartonPriceDetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNumIsNull() {
            addCriterion("num is null");
            return (Criteria) this;
        }

        public Criteria andNumIsNotNull() {
            addCriterion("num is not null");
            return (Criteria) this;
        }

        public Criteria andNumEqualTo(Integer value) {
            addCriterion("num =", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotEqualTo(Integer value) {
            addCriterion("num <>", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThan(Integer value) {
            addCriterion("num >", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("num >=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThan(Integer value) {
            addCriterion("num <", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThanOrEqualTo(Integer value) {
            addCriterion("num <=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumIn(List<Integer> values) {
            addCriterion("num in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotIn(List<Integer> values) {
            addCriterion("num not in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumBetween(Integer value1, Integer value2) {
            addCriterion("num between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotBetween(Integer value1, Integer value2) {
            addCriterion("num not between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("code like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("code not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCd1IsNull() {
            addCriterion("cd1 is null");
            return (Criteria) this;
        }

        public Criteria andCd1IsNotNull() {
            addCriterion("cd1 is not null");
            return (Criteria) this;
        }

        public Criteria andCd1EqualTo(String value) {
            addCriterion("cd1 =", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1NotEqualTo(String value) {
            addCriterion("cd1 <>", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1GreaterThan(String value) {
            addCriterion("cd1 >", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1GreaterThanOrEqualTo(String value) {
            addCriterion("cd1 >=", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1LessThan(String value) {
            addCriterion("cd1 <", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1LessThanOrEqualTo(String value) {
            addCriterion("cd1 <=", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1Like(String value) {
            addCriterion("cd1 like", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1NotLike(String value) {
            addCriterion("cd1 not like", value, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1In(List<String> values) {
            addCriterion("cd1 in", values, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1NotIn(List<String> values) {
            addCriterion("cd1 not in", values, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1Between(String value1, String value2) {
            addCriterion("cd1 between", value1, value2, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd1NotBetween(String value1, String value2) {
            addCriterion("cd1 not between", value1, value2, "cd1");
            return (Criteria) this;
        }

        public Criteria andCd2IsNull() {
            addCriterion("cd2 is null");
            return (Criteria) this;
        }

        public Criteria andCd2IsNotNull() {
            addCriterion("cd2 is not null");
            return (Criteria) this;
        }

        public Criteria andCd2EqualTo(String value) {
            addCriterion("cd2 =", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2NotEqualTo(String value) {
            addCriterion("cd2 <>", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2GreaterThan(String value) {
            addCriterion("cd2 >", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2GreaterThanOrEqualTo(String value) {
            addCriterion("cd2 >=", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2LessThan(String value) {
            addCriterion("cd2 <", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2LessThanOrEqualTo(String value) {
            addCriterion("cd2 <=", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2Like(String value) {
            addCriterion("cd2 like", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2NotLike(String value) {
            addCriterion("cd2 not like", value, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2In(List<String> values) {
            addCriterion("cd2 in", values, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2NotIn(List<String> values) {
            addCriterion("cd2 not in", values, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2Between(String value1, String value2) {
            addCriterion("cd2 between", value1, value2, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd2NotBetween(String value1, String value2) {
            addCriterion("cd2 not between", value1, value2, "cd2");
            return (Criteria) this;
        }

        public Criteria andCd3IsNull() {
            addCriterion("cd3 is null");
            return (Criteria) this;
        }

        public Criteria andCd3IsNotNull() {
            addCriterion("cd3 is not null");
            return (Criteria) this;
        }

        public Criteria andCd3EqualTo(String value) {
            addCriterion("cd3 =", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3NotEqualTo(String value) {
            addCriterion("cd3 <>", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3GreaterThan(String value) {
            addCriterion("cd3 >", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3GreaterThanOrEqualTo(String value) {
            addCriterion("cd3 >=", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3LessThan(String value) {
            addCriterion("cd3 <", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3LessThanOrEqualTo(String value) {
            addCriterion("cd3 <=", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3Like(String value) {
            addCriterion("cd3 like", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3NotLike(String value) {
            addCriterion("cd3 not like", value, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3In(List<String> values) {
            addCriterion("cd3 in", values, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3NotIn(List<String> values) {
            addCriterion("cd3 not in", values, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3Between(String value1, String value2) {
            addCriterion("cd3 between", value1, value2, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd3NotBetween(String value1, String value2) {
            addCriterion("cd3 not between", value1, value2, "cd3");
            return (Criteria) this;
        }

        public Criteria andCd4IsNull() {
            addCriterion("cd4 is null");
            return (Criteria) this;
        }

        public Criteria andCd4IsNotNull() {
            addCriterion("cd4 is not null");
            return (Criteria) this;
        }

        public Criteria andCd4EqualTo(String value) {
            addCriterion("cd4 =", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4NotEqualTo(String value) {
            addCriterion("cd4 <>", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4GreaterThan(String value) {
            addCriterion("cd4 >", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4GreaterThanOrEqualTo(String value) {
            addCriterion("cd4 >=", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4LessThan(String value) {
            addCriterion("cd4 <", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4LessThanOrEqualTo(String value) {
            addCriterion("cd4 <=", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4Like(String value) {
            addCriterion("cd4 like", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4NotLike(String value) {
            addCriterion("cd4 not like", value, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4In(List<String> values) {
            addCriterion("cd4 in", values, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4NotIn(List<String> values) {
            addCriterion("cd4 not in", values, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4Between(String value1, String value2) {
            addCriterion("cd4 between", value1, value2, "cd4");
            return (Criteria) this;
        }

        public Criteria andCd4NotBetween(String value1, String value2) {
            addCriterion("cd4 not between", value1, value2, "cd4");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceIsNull() {
            addCriterion("no_pay_price is null");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceIsNotNull() {
            addCriterion("no_pay_price is not null");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceEqualTo(BigDecimal value) {
            addCriterion("no_pay_price =", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceNotEqualTo(BigDecimal value) {
            addCriterion("no_pay_price <>", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceGreaterThan(BigDecimal value) {
            addCriterion("no_pay_price >", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("no_pay_price >=", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceLessThan(BigDecimal value) {
            addCriterion("no_pay_price <", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("no_pay_price <=", value, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceIn(List<BigDecimal> values) {
            addCriterion("no_pay_price in", values, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceNotIn(List<BigDecimal> values) {
            addCriterion("no_pay_price not in", values, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_pay_price between", value1, value2, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andNoPayPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("no_pay_price not between", value1, value2, "noPayPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceIsNull() {
            addCriterion("pay_price is null");
            return (Criteria) this;
        }

        public Criteria andPayPriceIsNotNull() {
            addCriterion("pay_price is not null");
            return (Criteria) this;
        }

        public Criteria andPayPriceEqualTo(BigDecimal value) {
            addCriterion("pay_price =", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotEqualTo(BigDecimal value) {
            addCriterion("pay_price <>", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceGreaterThan(BigDecimal value) {
            addCriterion("pay_price >", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price >=", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceLessThan(BigDecimal value) {
            addCriterion("pay_price <", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price <=", value, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceIn(List<BigDecimal> values) {
            addCriterion("pay_price in", values, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotIn(List<BigDecimal> values) {
            addCriterion("pay_price not in", values, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price between", value1, value2, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price not between", value1, value2, "payPrice");
            return (Criteria) this;
        }

        public Criteria andPayPrice98IsNull() {
            addCriterion("pay_price_98 is null");
            return (Criteria) this;
        }

        public Criteria andPayPrice98IsNotNull() {
            addCriterion("pay_price_98 is not null");
            return (Criteria) this;
        }

        public Criteria andPayPrice98EqualTo(BigDecimal value) {
            addCriterion("pay_price_98 =", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98NotEqualTo(BigDecimal value) {
            addCriterion("pay_price_98 <>", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98GreaterThan(BigDecimal value) {
            addCriterion("pay_price_98 >", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98GreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price_98 >=", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98LessThan(BigDecimal value) {
            addCriterion("pay_price_98 <", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98LessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_price_98 <=", value, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98In(List<BigDecimal> values) {
            addCriterion("pay_price_98 in", values, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98NotIn(List<BigDecimal> values) {
            addCriterion("pay_price_98 not in", values, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98Between(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price_98 between", value1, value2, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andPayPrice98NotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_price_98 not between", value1, value2, "payPrice98");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("company_id is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("company_id is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(Long value) {
            addCriterion("company_id =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(Long value) {
            addCriterion("company_id <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(Long value) {
            addCriterion("company_id >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("company_id >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(Long value) {
            addCriterion("company_id <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(Long value) {
            addCriterion("company_id <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<Long> values) {
            addCriterion("company_id in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<Long> values) {
            addCriterion("company_id not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(Long value1, Long value2) {
            addCriterion("company_id between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(Long value1, Long value2) {
            addCriterion("company_id not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("update_date is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("update_date is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("update_date =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("update_date <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("update_date >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("update_date >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("update_date <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("update_date <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("update_date in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("update_date not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("update_date between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("update_date not between", value1, value2, "updateDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}